<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2015/8/20
 * Time: 4:39
 */

namespace app\models;
use Yii;
use yii\db\ActiveRecord;

class Photos  extends ActiveRecord {
    public $id;
    public $photos;
    public $describes;


    public static function tableName()
    {
        return 'photos';
    }

    public function rules()
    {
        return [[["photos"],"required",],];

    }
    public function scenarios()
    {
        return [
            'addphotos' => ['photos', 'describes'],
            'updatephotos' => ['id','describes'],

        ];
    }

}